package com.zej.bean;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 一缕茜阳
 * @date 2021/11/6
 */
@NoArgsConstructor
@Data
public class Employee {
    private Integer id;
    private String name;
    private String email;
    private Integer gender;
    private Integer departmentId;
    private Date birth;

    public Employee(Integer id, String name, String email, Integer gender, Integer departmentId) {
        this.id = id;
        this.name = name;
        this.email = email;
        this.gender = gender;
        this.departmentId = departmentId;
        this.birth = new Date();
    }
}
